﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="adminHotQuestion.aspx.cs" Inherits="Admin_adminHotQuestion" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Src="adminfoot.ascx" TagName="adminfoot" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>无标题页</title>
    <link rel="stylesheet" href="imgs/admin.css" type="text/css" media="all" />
    <script type="text/javascript" src="../DotNet_net/js/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="imgs/GetAjax.js"></script>
    <script type="text/javascript" src="../DotNet_net/js/common.js"></script>
    <script type="text/javascript" src="../DotNet_net/js/jquery.form.js"></script>
    <script language="javascript" type="text/javascript">
function  doPostEdit(url,sname)
{
    var ids=getIDList(sname);
    var Param='';       
    if(ids!="")
    {
        if((confirm("确定要批量修改这些记录?"))==true)
        {           
               $("#loading").show();                   
              for(var i=0;i<=ids.split(',').length-1;i++)
              {  
                 var id=ids.split(',')[i];                                    
                 Param+= "&hqTitle"+id+"="+$("#hqTitle"+id).attr("value");                                 
              }  
              url=url+"adminHotQuestion.aspx?action=editAll&id="+ids;                     
              ajax_post(url,Param,function(msg){
                    $("#cpcontainer").empty().append(msg);
                    $("#loading").hide();
              });
        }
    }
    else
    {
        alert("您还没有选择要修改的项");
        return;
    }
} 
function changePage(name)
{

}
</script>
</head>
<body onload='$("#loading").hide()'>
<div class="container" id="cpcontainer">
<div id="loading" style="display:block">   
    <div class="loading-indicator">   
        页面正在加载中...   
    </div>   
</div>         
<table class="tb2">
        <tr class="thead"><th colspan="6">问题管理(<font color='red'>＊</font>为必填,其它选填)<%=input %></th></tr>	
        <tr align="center">
			<td align="left" width="20%" style="height: 18px">
                ID.问题名称</td>
			<td width="14%" style="height: 18px">
                问题名称</td>
			<td width="10%" style="height: 18px">
                最新修改时间</td>
			<td width="13%" style="height: 18px">&nbsp;操作</td>		
        </tr>
        <asp:Repeater ID="Repeater1" runat="server">
        <ItemTemplate>
        <tr align="center">            
<td align="left" width="20%">&nbsp;<input  title="<%#Eval("hotQuestionID") %>" type="checkbox" class="checkbox" value="<%#Eval("hotQuestionID") %>" name="m_id"><%#Eval("hotQuestionID")%>.<%#Eval("hotQuestionTitle")%></td>

<td width="14%" align="center"><input type="text" value="<%#Eval("hotQuestionTitle") %>" id="hqTitle<%#Eval("hotQuestionID") %>" size="13" style="width: 98%"></td>

<td width="16%"><%#Eval("reportTime") %></td>
<td width="13%">
<input type="button" title="<%#Eval("hotQuestionID") %>" class="btn"  onclick="del(this.title)" value="删除"/>
<input id="btn_edit" class="btn" title="<%#Eval("hotQuestionID") %>" type="button" value="编辑" onclick="javascript:location.href='addHotQuestion.aspx?action=edit&hqid='+this.title"/>
</td>  
        </tr>
        </ItemTemplate>
        </asp:Repeater>   
</table>       

   <table class="tb" id="tbS">
   <tr><td>全选<input type="checkbox" name="chkall" id="chkall" class="checkbox" onclick="checkAll(this.checked,'m_id')" />反选<input type="checkbox" name="chkothers" id="chkothers" class="checkbox" onclick="checkOthers('m_id')" />
   <input type="button" value="批量修改选中分类" class="btn" onclick="doPostEdit('','m_id')" id="Button1"/>&nbsp;</td></tr>
           <tr><td colspan="11"><div class="cuspages"><div class="pages">
 <%htmlPaging();%></div></div></td>
        </tr>  
   </table>
 <uc1:adminfoot ID="Adminfoot1" runat="server" />
    </div>  
     
</body>
</html>
<script language="javascript" type="text/javascript">
function del(id)
{
    var url="";
    if(confirm('确定要删除吗'))
    {
        
        url='adminHotQuestion.aspx?action=delAll&id='+id+$('#HiddenUrl').attr('value');       
        $('#loading').show();
        ajax_get(url,'',function(msg)
        { 
            $('#cpcontainer').empty().append(msg);
            $('#loading').hide();
        }); 
                
    }
}

</script>
